#include <iostream>

#include "field.h"

int main()
{
	std::cout << "Hello world!" << std::endl;
	
	Obstacle box(Size(3,4,5), Position(8,8,1));
	Obstacle wood;
	Obstacle hole(Size(5,5,5));
	
	Field map;
	map.AddObstacle(wood);
	map.AddObstacle(hole);
	map.AddObstacle(box);
	
	Position actualPlayerPos(12,15,3);
	Position nextPlayerPos(18,20,3);
	Size someSize(3,4,4);
	
	Position newPos;
	newPos = map.MoveLimit(actualPlayerPos, nextPlayerPos, someSize);
	
	std::cout << "The new position is: " << newPos.x << "," 
	<< newPos.y << "," << newPos.z << std::endl;
	
	return 0;
}
